package com.randi.framework.domain.service;

import com.randi.framework.domain.dto.UserLoginDTO;

import javax.servlet.http.HttpServletRequest;
import java.util.HashMap;

/**
 * @author ziye
 */
public interface ISysLoginService {

    /**
     * 登录方法
     *
     * @param userLoginDto loginBody
     * @return tokenMap
     */
    HashMap<String, String> loginByPassword(UserLoginDTO userLoginDto);

    /**
     * 登录续期
     *
     * @param request request
     * @return token
     */
    HashMap<String, String> refreshToken(HttpServletRequest request);

    /**
     * 退出登录
     */
    void logout();
}
